package cn.t17.appsys.dao;

import cn.t17.appsys.entity.AppCategory;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * AppCategoryMapper class
 *
 * @author Administrator dominate_tree
 * @date 2021/9/16
 */
public interface AppCategoryMapper {

    @Select("<script>select * from app_category where " +
            "<if test='parentId !=null'>parentId = #{parentId}</if>"+
            "<if test='parentId ==null'>parentId is null</if>"+
            "</script>")
    List<AppCategory> listByParentId(Long parentId);
}
